package cn.fl.alivecheck;

import cmm.mid.core.framework.page.DataResultVO;
import cn.cmm.base.framework.constant.BaseConstant;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务存活性检查接口，提供给运维使用
 *
 * @author xuzhiyuan
 * @version V1.0
 * @date 2020-10-14
 */
@RestController
@RequestMapping("/alive/check")
public class AliveCheckController {
    public static final String OK="OK";
    /**
      * 服务状态检查
      * @author xuzhiyuan
      * @date 2020-10-14 13:46
      * @param
      * @return java.lang.String
     */
    @RequestMapping(value = "/status.do",method = {RequestMethod.GET})
    public DataResultVO checkStatus(){
        DataResultVO dataResultVO =  new DataResultVO(BaseConstant.IS_YESNO_YES, "成功");
        return dataResultVO;
    }
}
